﻿  @model PagedList<ProductInfo>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="GBK">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=GBK" />
    <title></title>
    <meta name="robots" content="noindex,follow">

    <link rel="shortcut icon" href="#" />
    <link href="@Url.Content("~/Areas/CPP/Content/merge-120609.css")" rel="stylesheet" />
    <link href="/Areas/CPP/Content/default.scrolltop.min.css" rel="stylesheet" />
    <script src="/Scripts/jquery-1.8.2.min.js"></script>
</head>
<body class="fullscreen sw-layout-w990 ">

    @{ Html.RenderAction("TopMenu", "CPartial");}

    <div>
        @{ Html.RenderAction("Header", "CPartial");}
    </div>
    <div>
        @{ Html.RenderAction("Menu", "CPartial");}
    </div>

    <div id="doc" class="sw-layout-doc">
        <div id="content" class="sw-layout-content">

            <div id="sw_mod_tab" class="sw-ui-tab">
                <ul class="Tab">
                    <li class="cur">
                        <b class="Corner-left"></b>
                        <b class="Corner-right"></b>
                        所有产品
                    </li>

                </ul>


            </div>
            <div class="sw-mod-filter sw-layout-mod" id="sw_mod_filter" trace="filtbar">
                <div class="sw-mod-filter-tip"></div>
                @*  <div class="filter-bottom-wrap">
                        <div id="filter_bottom" class="filter-bottom">
                            <ul>
                                <li class="mergeSuply check-box">
                                    <input type="checkbox" _frmfield="uniqfield" id="filter_ckbMergeSuply" checked trace="ckbMergeSuply" ctype="ckbMergeSuply" />
                                    <label class="" for="filter_ckbMergeSuply">合并相同供应商</label>
                                </li>


                                <li class="sw-ui-select Area " id="sw_mod_filter_area" currentprovince="江苏" default="" industrydistricts="绍兴县&amp;东莞市&amp;绍兴市&amp;常州市&amp;吴江市">
                                    <span class="Selected">所有地区</span>
                                    <div class="wgt-areabox" style="display: none;">
                                        <div class="wgt-areabg"></div>
                                    </div>
                                </li>

                                <li class="sw-ui-select biztype " ctype="biztype" id="filter_bizetype">
                                    <span class="Selected">经营模式
                                    </span>
                                    <ul _frmfield="biztype" class="Select-item" style="display: none;">
                                        <li>
                                            <a val="1" href="#" cvalue="bizType1">生产加工</a>
                                        </li>
                                        <li>
                                            <a val="2" href="#" cvalue="bizType2">经销批发</a>
                                        </li>
                                        <li>
                                            <a val="4" href="#" cvalue="bizType4">招商代理</a>
                                        </li>
                                        <li>
                                            <a val="8" href="#" cvalue="bizType8">商业服务</a>
                                        </li>
                                        <li class="select">
                                            <a val="" href="#" cvalue="bizType">经营模式</a>
                                        </li>
                                    </ul>
                                </li>

                                <li class="count-order" ctype="bookedSort">
                                    <label>销量</label>
                                    <a class="count-desc" descendorder="" val="" target="_self" _frmfield="sortType" title="销量从高到低排序" href="#" id="filter_countsort"></a>
                                </li>

                                <li class="price-order" ctype="priceSort">
                                    <label>价格</label>
                                    <a class=" price-desc " descendorder="true" val="price" target="_self" _frmfield="sortType" title="价格从高到低排序" href="#" id="filter_pricesortdesc"></a>
                                    <a class="" descendorder="false" val="price" target="_self" _frmfield="sortType" title="价格从低到高排序" href="#" id="filter_pricesortasc"></a>
                                </li>

                                <li class="price-grid" ctype="priceGrid">
                                    <div class="price-range">
                                        <input type="text" maxlength="13" _default="最低价" value="最低价" id="frmPriceStart" _frmfield="priceStart">&nbsp;-&nbsp;<input type="text" maxlength="13" _default="最高价" value="最高价" id="frmPriceEnd" _frmfield="priceEnd">
                                                                                                                                                            <p><a id="priceRangeBtn" href="#" class="sw-ui-btn-g23" default=""><span>确定</span></a></p>
                                    </div>
                                </li>

                                <li class="filt-quantity-begin" ctype="quantityGrid">
                                    <label>起订量</label>
                                    <div class="quantity-range">
                                        <input type="text" id="frmQuantityBegin" _frmfield="quantityBegin" value="">
                                        <p><a class="sw-ui-btn-g23" id="quantityBeginBtn" href="#" default=""><span>确定</span></a></p>
                                    </div>
                                    <span class="below">以下</span>
                                </li>
                            </ul>
                        </div>
                    </div>*@
            </div>

          
            <div id="sw_mod_mainblock" class="sw-mod-mainblock sw-layout-mod">
                <div id="sw_mod_searchlist" class="sw-mod-search sw-layout-mod" style="width:700px;">
                    <ul class="sw-mod-popOfferImgs">
                        @if (Model == null || Model.Count == 0)
                        { 
                            <li class="sw-mod-offer-block sw-block-photo">
                                <div id="sw_mod_noresult" style="margin-left: 60px;" class="sw-mod-noresult">
                                    <div class="sw-ui-tip-sorry" >
                                        <div style="float:left;width:80px;height:70px;background-image: url(/Areas/CPP/Images/20130226160944.png);">
                                        </div>
                                       
                                    </div>
                                    <ul class="sw-mod-noresult-suggestion" style="margin-left: 80px; margin-top:10px;">
                                        <li> <span class="sw-ui-tip-sorry-des" style="font-size: 16px; margin-top:20px; font-weight: bold;">抱歉，没有找到符合"<span style="color: red">@ViewBag.filters</span>"的查询结果。
                                             </span></li>
                                        <li style="margin-top:10px;">
                                            <strong>建议你：</strong> 缩短或修改您的搜索词，重新搜索
                                        </li>
                                    </ul>
                                </div>
                            </li>
                

                        }


                        @foreach (var item in Model)
                        {
                            
                            <li class="sw-mod-offerImg sw-mod-checkbox-id paGetId ">
                                <ul class="fd-clr">
                                    <li class="sw-mod-offer-block sw-block-photo">
                                        <div class="sw-ui-photo100 sw-mod-checkbox-photo sw-mod-previewBigPhoto">
                                            <a class="sw-ui-photo100-box" href="@Url.RouteUrl("CPP_product", new { controller = "CCompany", action = "PDetail", pid = item.Id })"
                                               target="_blank">
                                                <img src="@item.Image"  width="100" height="100"  border="0" alt=""/>
                                            </a>

                                        </div>
                                    </li>
                                    <li class="sw-mod-offer-block sw-block-description">

                                        <h2 class="sw-mod-offerImg-title">
                                            <a class="sw-ui-font-title14" 
                                               href="@Url.RouteUrl("CPP_product", new { controller = "CCompany", action = "PDetail", pid = item.Id })" 
                                               target="_blank" title="@item.ProductName">@item.ProductName</a>
                                        </h2>

                                        <div class="sw-mod-offerImg-des">
                                            <p>
                                                用途： @item.Purpose
                                            </p>
                                            <p>
                                                厂商（产地）： @item.Manufacturers
                                            </p>
                                        </div>



                                    </li>
                                    <li class="sw-mod-offer-block sw-block-price">

                                        <p>
                                            <span class="sw-ui-font-priceIcon">@item.Price</span>
                                            <span class="priceUnit">@item.PriceUnit</span>
                                        </p>



                                    </li>
                                    <li class="sw-mod-offer-block sw-block-company">
                                        <p>
                                            <a
                                                href="@Url.RouteUrl("CPP_company", new { controller = "CCompany",action="Index",cid = item.CompanyId })"
                                                class="sw-mod-previewCompanyInfo" target="_blank">
                                                @item.Company.Name
                                            </a>
                                        </p>
                                        <p class="sw-mod-offerImg-attribute-p2">
                                            <span class="sw-mod-offerImg-company-place">
                                                @item.Company.Address
                                            </span>
                                        </p>
                                        @*<p class="sw-mod-offerImg-summary sw-fn-clear">
                                <a rel="nofollow" class="sw-ui-icon-alipay" href="#" target="_blank"></a>
                            </p>*@
                                    </li>
                                </ul>
                            </li>

                        }
                    </ul>
                </div>
                <div id="sw_mod_sub" class="sw-layout-sub"  style="width:227px;">
                    <div class="loadingicon" id="col-loading"></div>
                    <div class="delayshow" id="col-delayshow">
                        @{  Html.RenderAction("Advert", "CPartial", new { floor = "PT" }); }
                    </div>
                </div>
            </div>

            <div id="sw_mod_pagination" class="sw-mod-pagination sw-layout-mod">
                <div class="pagination">
                    @Html.Pager(Model, new Webdiyer.WebControls.Mvc.PagerOptions()
                        {
                            PageIndexParameterName = "page",
                            NumericPagerItemCount = 9,
                            AutoHide = true,
                            CssClass = "page-bottom",
                            CurrentPagerItemWrapperFormatString = "<span class='page-cur'>{0}</span>",
                            //NumericPagerItemWrapperFormatString = "<span class='page_items'>{0}</span>",
                            //PagerItemWrapperFormatString = "<span class='page_items'>{0}</span>",
                            //NavigationPagerItemWrapperFormatString = "<span class='page_items'>{0}</span>",
                            SeparatorHtml = "",
                            ContainerTagName = "div",
                            ShowFirstLast = false,
                            //ShowGoButton = true,
                            //ShowPageIndexBox = true,
                            // PageIndexBoxWrapperFormatString = "<span class='total-page'>共" + Model.TotalPageCount + "页</span> 到第 {0} 页  ",    
                            //GoToPageSectionWrapperFormatString=" <div class=\"page-op\">{0}</div>", GoButtonText = "确定"

                        })
                    <script type="text/javascript">
                        $(function () {
                            $(".page-bottom a").filter(function (index) {
                                return $(this).text() == "下一页";
                            }).addClass("page-next");
                        });
                    </script>
                    @* <div class="page-bottom">
            <span class="page-start"><span>上一页</span></span>
            <span class="page-cur">1</span>
            <a href="http://search.china.alibaba.com/selloffer/-C8ABC3DEC3E6C1CF-1046622.html?descendOrder=true&pageSize=40&lessThanQuantityBegin=true&spm=a260k.635.5067267.34&from=marketSearch&filt=y&tracelog=hpcatalog_ycl_fangzhi_quanmianml&sortType=booked&offset=0&showStyle=img&beginPage=2&uniqfield=userid" target="_self" rel="nofollow">2</a>
            <a href="http://search.china.alibaba.com/selloffer/-C8ABC3DEC3E6C1CF-1046622.html?descendOrder=true&pageSize=40&lessThanQuantityBegin=true&spm=a260k.635.5067267.34&from=marketSearch&filt=y&tracelog=hpcatalog_ycl_fangzhi_quanmianml&sortType=booked&offset=0&showStyle=img&beginPage=3&uniqfield=userid" target="_self" rel="nofollow">3</a>
            <a href="http://search.china.alibaba.com/selloffer/-C8ABC3DEC3E6C1CF-1046622.html?descendOrder=true&pageSize=40&lessThanQuantityBegin=true&spm=a260k.635.5067267.34&from=marketSearch&filt=y&tracelog=hpcatalog_ycl_fangzhi_quanmianml&sortType=booked&offset=0&showStyle=img&beginPage=4&uniqfield=userid" target="_self" rel="nofollow">4</a>
            <a href="http://search.china.alibaba.com/selloffer/-C8ABC3DEC3E6C1CF-1046622.html?descendOrder=true&pageSize=40&lessThanQuantityBegin=true&spm=a260k.635.5067267.34&from=marketSearch&filt=y&tracelog=hpcatalog_ycl_fangzhi_quanmianml&sortType=booked&offset=0&showStyle=img&beginPage=5&uniqfield=userid" target="_self" rel="nofollow">5</a>
            <a href="http://search.china.alibaba.com/selloffer/-C8ABC3DEC3E6C1CF-1046622.html?descendOrder=true&pageSize=40&lessThanQuantityBegin=true&spm=a260k.635.5067267.34&from=marketSearch&filt=y&tracelog=hpcatalog_ycl_fangzhi_quanmianml&sortType=booked&offset=0&showStyle=img&beginPage=6&uniqfield=userid" target="_self" rel="nofollow">6</a>
            <a href="http://search.china.alibaba.com/selloffer/-C8ABC3DEC3E6C1CF-1046622.html?descendOrder=true&pageSize=40&lessThanQuantityBegin=true&spm=a260k.635.5067267.34&from=marketSearch&filt=y&tracelog=hpcatalog_ycl_fangzhi_quanmianml&sortType=booked&offset=0&showStyle=img&beginPage=7&uniqfield=userid" target="_self" rel="nofollow">7</a>
            <a href="http://search.china.alibaba.com/selloffer/-C8ABC3DEC3E6C1CF-1046622.html?descendOrder=true&pageSize=40&lessThanQuantityBegin=true&spm=a260k.635.5067267.34&from=marketSearch&filt=y&tracelog=hpcatalog_ycl_fangzhi_quanmianml&sortType=booked&offset=0&showStyle=img&beginPage=8&uniqfield=userid" target="_self" rel="nofollow">8</a>
            <a href="http://search.china.alibaba.com/selloffer/-C8ABC3DEC3E6C1CF-1046622.html?descendOrder=true&pageSize=40&lessThanQuantityBegin=true&spm=a260k.635.5067267.34&from=marketSearch&filt=y&tracelog=hpcatalog_ycl_fangzhi_quanmianml&sortType=booked&offset=0&showStyle=img&beginPage=9&uniqfield=userid" target="_self" rel="nofollow">9</a>
            <span class="page-break">...</span>
            <a href="http://search.china.alibaba.com/selloffer/-C8ABC3DEC3E6C1CF-1046622.html?descendOrder=true&pageSize=40&lessThanQuantityBegin=true&spm=a260k.635.5067267.34&from=marketSearch&filt=y&tracelog=hpcatalog_ycl_fangzhi_quanmianml&sortType=booked&offset=0&showStyle=img&beginPage=2&uniqfield=userid" target="_self" class="page-next" rel="nofollow">下一页</a>
        </div>*@
                    @*<form method="get" action="http://search.china.alibaba.com/selloffer/offer_search.htm" trace="buttonTracelog">
            <input type="hidden" name="spm" value="a260k.635.5067267.34" />
            <input type="hidden" name="descendOrder" value="true" />
            <input type="hidden" name="sortType" value="booked" />
            <input type="hidden" name="lessThanQuantityBegin" value="true" />
            <input type="hidden" name="showStyle" value="img" />
            <input type="hidden" name="uniqfield" value="userid" />
            <input type="hidden" name="filt" value="y" />
            <input type="hidden" name="tracelog" value="hpcatalog_ycl_fangzhi_quanmianml" />
            <input type="hidden" name="keywords" value="全棉面料" />
            <input type="hidden" name="categoryId" value="1046622" />
            <input type="hidden" name="from" value="marketSearch" />
            <input type="hidden" value="y" name="n" />
            <div class="page-op">
                <span class="total-page">共58页</span>到<input type="text" name="beginPage"
                                                            id="jumpto" autocomplete="off" data-max="58" />页<input type="submit"
                                                                                                                   value="确定" id="jump-sub" />
            </div>
        </form>*@
                </div>
            </div>

        </div>
    </div>
    <div>

        @{ Html.RenderAction("Footer", "CPartial");}

    </div>
</body>
</html>

